
plt.figure(figsize=(40,40))
plt.subplot(1,2,1)
plt.imshow(image)
plt.title("Image")
plt.subplot(1,2,2)
plt.imshow(test1)
plt.title("after Intensity and Saturation selection")
<matplotlib.text.Text at 0x7fe96b5d9c50>
plt.figure(figsize=(40,40))
plt.subplot(1,2,1)
plt.imshow(test2)
plt.title("after gradient magtitude selection")
plt.subplot(1,2,2)
plt.imshow(test3)
plt.title("after GMM")
<matplotlib.text.Text at 0x7fe96b3b49b0>
plt.figure(figsize=(10,10))
# plt.subplot(1,2,1)
plt.imshow(test4)
plt.title("after fill process")
<matplotlib.text.Text at 0x7fe969383c18>

plt.figure(figsize=(8,8))
plt.imshow(paint_2)
plt.title("after var remove and fill")
<matplotlib.image.AxesImage at 0x7effaf738ac8>
plt.figure(figsize=(8,8))
plt.imshow(paint_4)
plt.title("after background fillprocess")
<matplotlib.image.AxesImage at 0x7f0e1eb84320>
def show(k ) :
_, basename = os.path.split(showfile[k])
resoult = "./output/show/" + basename
plt.figure(figsize=(40,40))
plt.subplot(1,2,1)
plt.imshow(Image.open(showfile[k]))
plt.subplot(1,2,2)
plt.imshow(Image.open(resoult))
show(1)
show(2)
show(3)
show(4)
show(5)
show(9)
show(np.random.randint(1)%80)
show(np.random.randint(80))
show(np.random.randint(80))